package com.atguigu.edu.realtime.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.beans.Transient;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TradeCourseOrderBean {
    // {"course_id":"263","coupon_reduce":"0.0","od_ts":"1662033303",
    // "create_time":"2022-09-01 19:55:04","course_name":"Docker核心技术",
    // "expire_time":"2022-09-01 20:10:04",
    // "session_id":"cf072f33-deca-42ac-9d21-ef8df1e312f9",
    // "oi_ts":"1662033303","date_id":"2022-09-01","expire_time_date":"2022-09-01",
    // "origin_amount":"200.0","user_id":"782","province_id":"29",
    // "row_op_ts":"2022-09-01 11:55:03.833Z",
    // "final_amount":"200.0","id":"33575","order_id":"31136"}
    // 窗口开始时间
    String stt;
    // 窗口结束时间
    String edt;

    //String id;
    String courseId;
    String courseName;
    String orderId;
    String userId;

    // 学科id
    String subjectId;
    // 学科名称
    String subjectName;
    // 分类id
    String categoryId;
    // 分类名称
    String categoryName;

    // 订单id列表  用来计算下单数量
    @TransientSink
    Set<String> orderIdSet;
    // 下单次数
    Long orderCount;
    // 下单人数
    Long orderUuCount;
    // 原始金额
    Double originAmount;
    // 优惠金额
    Double couponReduce;
    // 最终金额
    Double finalAmount;

    Long ts;
}
